package com.party.core.model.gift;

import com.party.common.annotation.ExcelField;
import com.party.core.utils.MyBeanUtils;

import java.util.Date;

/**
 * @Author: Administrator.
 * @Description: 导出
 * @Date:Created in 2017/11/16 0016 下午 18:14.
 */
public class GiftOrderExportOutput {
    @ExcelField(title = "项目名称", sort = 0)
    private String targetName;
    @ExcelField(title = "礼包单号", sort = 1)
    private String giftNum; // 礼包单号
    @ExcelField(title = "领取用户", sort = 2)
    private String receiverName; // 昵称
    @ExcelField(title = "领取时间", sort = 3)
    private Date updateDate;
    @ExcelField(title = "物流信息", sort = 4)
    private String logistics; // 物流信息
    @ExcelField(title = "收货人姓名", sort = 5)
    private String consigneeName; // 收货人姓名
    @ExcelField(title = "收货人电话", sort = 6)
    private String consigneePhone; // 收货人电话
    @ExcelField(title = "收货人地址", sort = 7)
    private String consigneeAddress; // 收货人详细地址

    public String getGiftNum() {
        return giftNum;
    }

    public void setGiftNum(String giftNum) {
        this.giftNum = giftNum;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getConsigneeAddress() {
        return consigneeAddress;
    }

    public void setConsigneeAddress(String consigneeAddress) {
        this.consigneeAddress = consigneeAddress;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public static GiftOrderExportOutput transfrom(GiftOrderListOutput listOutput) {
        GiftOrderExportOutput output = new GiftOrderExportOutput();
        try {
            MyBeanUtils.copyBeanNotNull2Bean(listOutput, output);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return output;
    }
}
